<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/28
 * Time: 14:42
 */

namespace Cron\Controller;
use Api\Controller\BaseApiController;
use Cron\Model\CronModel;
class ApiController extends BaseApiController{
    /**
     * 对过期的红包进行处理,不需要推送
     */
    function expireRedbag(){
        $cronModel=new CronModel();
        $cronModel->expireRedbag();
    }
    /**
     * 定时推送红包结果给群主
     */
    function setTimePush(){
        $cronModel=new CronModel();
        $cronModel->setTimePush();
    }
}